<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
	request.setCharacterEncoding("gb2312");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="common/head.jsp" flush="true">
	<jsp:param name="title" value="图书馆::新书书评" />
</jsp:include> 
</head>
<body>
<div class="container">
	<jsp:include page="common/menu.jsp" flush="true"/>

	<form name="mainForm" id="mainFormID" action="bookreview.do" method="post">
	<input type="hidden" id="action" name="action" value="page"/>
	<input type="hidden" id="subject" name="subject" value="${subject}"/>
	
    <div class="container">
      <div class="span-6">
	  		<div class="title-bar ui_sr"><h4>新书简介</h4></div>
            <ul class="menu-list"> 
	            <c:forEach var="type" items="${typeList}" varStatus="status">
	                <li><a href="<%=appPath%>/bookreview.do?action=page&subject=${type.sortMapId}">${type.value}</a></li>
	           </c:forEach>
           </ul>
		   <div class="title-bar ui_sr"><h4>新书简介搜索</h4></div>
					<div class="sub-search">
						标题:<input name="bookname" type="text" size="15" maxlength="40" value="${bookname}"/>
					<input type="submit" value="查找" class="submit"/>
				  </div>
        </div>
        <div class="span-18 last">
            <div class="header-1">
            	<div class="left">当前位置: <a href="<%=appPath%>/index.do">首页</a> 
            	&rsaquo; <a href="<%=appPath%>/bookreview.do?action=page">新书简介</a>
            	</div>
            </div>
            <ul class="news-list2">
				<c:forEach var="bookreview" items="${list}" varStatus="status">
	                <li><a href="<%=appPath%>/bookreview.do?event=single&id=${bookreview.bookreviewId}">${bookreview.bookname}</a> <span class="time">${bookreview.recomdateString}</span> </li>
				</c:forEach>
            </ul>  
			<jsp:include page="common/page.jsp" flush="true"/>
        </div> 
    </div>
	</form>        
<jsp:include page="common/foot.jsp" flush="true"/>
</div>
</body>
</html> 